package top.laoshuzi.designpatterns.base.behavior.state;

import org.junit.Test;

public class Client {

    @Test
    public void operation() {
        State stateA = new ConcreteStateA();
        State stateB = new ConcreteStateB();

        Context context = new Context();
        context.setState(stateA);
        context.request();
        context.setState(stateB);
        context.request();
    }
}
